Describes how a custom popup should behave. More...
Public Attributes | |
nkWinUi::Window * | _customWindow = nullptr |
std::function< void()> | _initializationCallback |
bool * | _popupShouldCloseTracker = nullptr |
bool | _closeOnOutsideClick = false |
Whether a click outside the popup should cause it to close itself, cancelling the interaction. | |
Describes how a custom popup should behave.
nkWinUi::Window* nkWinUi::PopupCustomDescriptor::_customWindow = nullptr |
The window that should be displayed in the popup. It is required, can be entirely custom, but needs to have no parent.
std::function<void ()> nkWinUi::PopupCustomDescriptor::_initializationCallback |
The callback to call once the window is fitted in the popup and loaded. Useful to set some focus for instance.
bool* nkWinUi::PopupCustomDescriptor::_popupShouldCloseTracker = nullptr |
The boolean driving when the popup should close. Required and initialized at false when the popup shows. It is the responsibility of the custom interface to set this boolean to true during interaction to make the popup disappear and end its synchronous processing.